//
//  DialogChooseCell.m
//  CarDeal_IOS
//
//  Created by 孙可 on 2018/9/4.
//  Copyright © 2018年 sunke. All rights reserved.
//

#import "DialogChooseCell.h"

@implementation DialogChooseCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        _tvName = [[UILabel alloc] init];
        _tvName.textColor = title_color;
        _tvName.font = textFont;
        _tvName.textAlignment = NSTextAlignmentCenter;
        
        _lineView = [[UIView alloc] init];
        _lineView.backgroundColor = line_color;
        
        [self addSubview:_tvName];
        [self addSubview:_lineView];
        
        [_tvName mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.left.right.equalTo(self);
        }];
        [_lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.bottom.equalTo(self);
            make.height.mas_equalTo(@1);
        }];
        
    }
    return self;
}

@end
